package graph.groupers;

import org.eclipse.jdt.core.dom.IMethodBinding;
import org.eclipse.jdt.core.dom.MethodInvocation;
import org.eclipse.jdt.internal.ui.text.correction.ASTResolving;

public class MethodInvocationBySourceMethodGrouper implements IGrouper<IMethodBinding, MethodInvocation> {

	@Override
	public IMethodBinding getGroup(MethodInvocation value) {
		return ASTResolving.findParentMethodDeclaration(value).resolveBinding();
	}

}
